package com.spancer.contentcenter.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * author by: mars
 * Date: 2020/8/5 9:09
 * Description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Table(name = "t_content_info")
public class ContentInfo {
    /**
     * id
     */
    @Id
    @GeneratedValue(generator = "JDBC")
    private Integer id;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;
    /**
     * 封面图片
     */
    private String cover;
    /**
     * 订单状态
     */
    @Column(name = "order_status")
    private Integer orderStatus;
    /**
     * 自动标题
     */
    @Column(name = "auto_title")
    private String autoTitle;
    /**
     * 标题
     */
    @Column(name = "title")
    private String title;
    /**
     * 浏览量
     */
    @Column(name = "view_count")
    private Integer viewCount;
    /**
     * 喜爱数量
     */
    @Column(name = "fav_count")
    private Integer favCount;
    /**
     * 喜欢数量
     */
    @Column(name = "like_count")
    private Integer likeCount;
    /**
     * 回复数量
     */
    @Column(name = "reply_count")
    private Integer replyCount;

    /**
     * 状态
     */
    @Column(name = "status")
    private Integer status;
    /**
     * 删除状态
     */
    @Column(name = "delete_status")
    private Integer deleteStatus;


    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private Date updateTime;

}
